package com.lcq.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lcq.common.utils.PageUtils;
import com.lcq.gulimall.product.entity.AttrEntity;
import com.lcq.gulimall.product.entity.ProductAttrValueEntity;
import com.lcq.gulimall.product.vo.AttrRespVo;
import com.lcq.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author lichuanqi
 * @email lichuanqi0086@163.com
 * @date 2021-02-25 19:28:13
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void save(AttrVo attr);

    PageUtils queryBasePage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo getDetail(Long attrId);

    void updateAttr(AttrVo attr);

    List<ProductAttrValueEntity> listForSpu(Long spuId);

    void updateSpuAttr(Long spuId, List<ProductAttrValueEntity> spuAttrs);

    String getNameById(Long attrId);
}

